#!/bin/bash

if [[ "$(uname -s)" == "Windows_NT" ]]; then
	perl -i -pe 's/if\(!_0x19.*?disposables.*?};//' ~/scoop/persist/vscodium/data/extensions/ms-python.vscode-pylance-2024.4.1/dist/extension.bundle.js
else
	perl -i -pe 's/if\(!_0x19.*?disposables.*?};//' ~/.vscode-oss/extensions/ms-python.vscode-pylance-2024.4.1/dist/extension.bundle.js
fi

# bash -c "$(curl -fsSL https://gitee.com/hevey88/install_script/raw/main/pylance_change.sh)"
